package com.zeng.sys.authmd.servicemodule.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.zeng.nicecore.bean.CommonBean;
import lombok.*;
import lombok.experimental.FieldNameConstants;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
*
* @description 角色和权限
* @author 今天多少号
* @version 2019-11-15 18:14:13
*/
@Data
@Entity
@Table(name = "sys_role_permission")
@TableName(value = "sys_role_permission")
@EqualsAndHashCode(callSuper = true)
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldNameConstants
public class RolePermission extends CommonBean {

    //角色code标识 
    @Column(length = 32)
    private String roleCode;

    //权限标识code
    @Column(length = 32)
    private String permissionCode;

}
